package com.minhua.jijiehao2.http

import com.minhua.jijiehao2.bean.BaseBean

/**
 * @author moo
 * @date 2017/11/10.
 * @describe 请求回调
 */
abstract class CallBack<T> {

    /**
     * 成功回调
     */
    abstract fun onSuccess(t: BaseBean<T>)

    /**
     * 失败回调(可选)
     */
    open fun onFail(code: String, message: String) {

    }
}